<?php
$this->pageHeader = t('PAGE_TITLE_VIEW_COMMENT', 'article');
$this->pageTitle = t('PAGE_TITLE_VIEW_COMMENT', 'article');
$toolbar = new LGToolbar();
$toolbar->checkinList();
$toolbar->trashList();
$toolbar->refresh();
$this->pageToolbar = $toolbar->mergeToolbar();
//$this->breadcrumbs = array('System', 'article' => array('article/index'));
?>
<div id="ccontent">
    <div id="message" class='<?php if (isset($class)) echo $class ?>'><?php if (isset($message)) echo $message ?></div>    
</div>
<!-- search-form -->
<div class="search-form" >
    <?php
    $this->renderPartial('_search', array(
        'model' => $model,
    ));
    ?>
</div>

<!-- grid -->
<?php
$this->widget('GridView', array(
    'id' => 'DataGrid',
    'dataProvider' => $model->searchComments(),
    'columns' => array(
        array(
            'header' => '#',
            'class' => 'CCheckBoxColumn',
            'selectableRows' => '2',
            'id' => 'chkId',
        ),
        array(
            'header' => t('LBL_COMMENT_TEXT', 'article'),
            'name' => 'comment_text',
            'htmlOptions' => array('align' => 'left'),
        ),
        array(
            'header' => t('LBL_USERNAME', 'article'),
            'name' => 'created_by',
            'htmlOptions' => array('align' => 'center'),
        ),
        array(
            'header' => t('LBL_CREATE_DATE', 'article'),
            'name' => 'create_date',
            'htmlOptions' => array('align' => 'center'),
        ),
        array(
            'name' => 'status',
            'htmlOptions' => array('align' => 'center'),
        ),
    ),
));
?>